//
// Created by work on 24-5-30.
//

#ifndef IOT_PLAT_CUSERMGR_H
#define IOT_PLAT_CUSERMGR_H

#include "CRedisDbMgr.h"
#include "dist/json/json.h"

namespace iotplat {

    class CUserMgr {
        STATIC_SINGLETON(CUserMgr);
    public:
        static Json::Value userRegister(Json::Value& jsonuser);

        Json::Value userLogin(Json::Value& jsonuser);

        std::string createToken();

        bool checkToken(const std::string &token);
    protected:

    private:


    };

} // iotplat

#endif //IOT_PLAT_CUSERMGR_H
